namespace jQube.Web.UI
{
    using System;

    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
    public class RequiredScriptAttribute : Attribute
    {
        private string scriptResourceName;
        private Type extendedType;

        public RequiredScriptAttribute(string scriptResourceName)
        {
            this.scriptResourceName = scriptResourceName;
        }

        public RequiredScriptAttribute(Type extendedType)
        {
            this.extendedType = extendedType;
        }

        public string ScriptResourceName
        {
            get
            {
                return this.scriptResourceName;
            }
        }

        public Type ExtendedType
        {
            get
            {
                return this.extendedType;
            }
        }
    }
}
